package com.kfm.base.map;


import java.util.ArrayList;
import java.util.List;

public class Demo07 {

    public static void main(String[] args) {
        List<String> list = new ArrayList<>();

        list.add("bb");
        list.add("a");


        list.stream()
//                .filter(e -> e.length() > 1)
                .map( e -> e + ".java")
                .sorted()
//                .mapToInt( e -> e.length())
                .forEach(e -> System.out.println(e));
    }
}
